package com.example.orderserver.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

public class employee {
    private Integer id;

    private String name;

    private String sex;

    private Integer age;

    @JsonFormat(pattern="yyyy-MM-dd")
    private Date hirdate;

    private String post;

    private String postComment;

    private BigDecimal salary;

    private String office;

    private Integer deparId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getHirdate() {
        return hirdate;
    }

    public void setHirdate(Date hirdate) {
        this.hirdate = hirdate;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post == null ? null : post.trim();
    }

    public String getPostComment() {
        return postComment;
    }

    public void setPostComment(String postComment) {
        this.postComment = postComment == null ? null : postComment.trim();
    }

    public BigDecimal getSalary() {
        return salary;
    }

    public void setSalary(BigDecimal salary) {
        this.salary = salary;
    }

    public String getOffice() {
        return office;
    }

    public void setOffice(String office) {
        this.office = office == null ? null : office.trim();
    }

    public Integer getDeparId() {
        return deparId;
    }

    public void setDeparId(Integer deparId) {
        this.deparId = deparId;
    }

    @Override
    public String toString() {
        return "employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", hirdate=" + hirdate +
                ", post='" + post + '\'' +
                ", postComment='" + postComment + '\'' +
                ", salary=" + salary +
                ", office='" + office + '\'' +
                ", deparId=" + deparId +
                '}';
    }
}